package com.du.design.observer;

/**
 * @desc:
 * @author: shuangdu
 * @date: 2022/1/7
 * @since: 1.8
 */
public class PhonePanel implements Observe {

    private WeatherStation weatherStation;

    public PhonePanel(WeatherStation weatherStation) {
        this.weatherStation = weatherStation;
    }

    @Override
    public void update() {
        System.out.println("手机面板获取到信息 --- " + weatherStation.getInfo());
    }
}
